import java.io.*;

public class problem98 {
    public static void main(String[] args) {
        File file = new File("words.txt");
        if(file.exists()) {
            try {
                BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
                String line;
                while ((line = bufferedReader.readLine()) != null) {
                    System.out.println(line);
                }
            } catch (IOException ioException) {
                System.err.println(ioException);
            }
        }
    }
}
